home *** CD-ROM | disk | FTP | other *** search
- #include <string.h>
-
- /************************************************************************/
-
- int (memcmp)(const void *Memory1, const void *Memory2, size_t Size)
-
- {
- #ifdef __SASC
- return __builtin_memcmp(Memory1,Memory2,Size);
- #else
- int Result;
-
- Result=0;
- if (Size != 0)
- {
- const unsigned char *t1;
- const unsigned char *t2;
-
- t1=Memory1;
- t2=Memory2;
- while (!(Result=*t1++-*t2++) && (--Size != 0))
- ;
- }
- return Result;
- #endif
- }
-